package com.aaa.sso.fegin;

import com.aaa.entity.Menu;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * @program: his-open-parent
 * @description:
 * @author: 闫克起
 * @create: 2023-03-20 10:18
 **/
@FeignClient(value = "his-open-system")
public interface MenuFeign {

    @GetMapping("/system/menu/findByUserid/{userId}")
    public List<Menu> findByUserid(@PathVariable Long userId);
}
